import request from '@/utils/request';

//培训层次分页查询
export function queryTrainingLevelList(data) {
	return request({
		method: 'get',
		url: '/sysTrainingLevel/query',
		params: data,
	})
}

//新增培训层次
export function addTrainingLevel(data) {
	return request({
		method: 'post',
		url: '/sysTrainingLevel/add',
		data,
	})
}

//修改培训层次
export function updateTrainingLevel(data) {
	return request({
		method: 'post',
		url: '/sysTrainingLevel/update',
		data,
	})
}

//删除培训层次
export function deleteTrainingLevel(id) {
	return request({
		method: 'get',
		url: '/sysTrainingLevel/delete/' + id
	})
}

//培训层次详情
export function queryTrainingLevel(id) {
	return request({
		method: 'get',
		url: '/sysTrainingLevel/query/' + id
	})
}